package com.netease.dylan;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class Main {
	public static void main(String[] args) {
		ClassPathResource resource = new ClassPathResource("spring.xml");
		XmlBeanFactory beanFactory = new XmlBeanFactory(resource);
		
		MyInterface bean = (MyInterface) beanFactory.getBean("bean");
		bean.hello();
		
		
		MyInterface testBean = (MyInterface) beanFactory.getBean("testBean");
		testBean.hello();
	}
}